﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpSoft.Documentation.Html.CSS
{
    /// <summary>
    /// css选择器语法错误
    /// </summary>
    public class CssSyntaxException : Exception
    {
        public CssSyntaxException(int pos,int lng,string message="CSS语法错误。"):base(message)
        {
            _Position = pos;
            _Length = lng;
        }
        private int _Position;
        /// <summary>
        /// 出错的位置
        /// </summary>
        public int Position
        {
            get { return _Position; } 
        }

        private int _Length;
        /// <summary>
        /// 出错的长度
        /// </summary>
        public int Length
        {
            get { return _Length; } 
        }
        
        
    }
}
